<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="layout" content="main" />
<title>Login In</title>
</head>

<body>
	<div class="body">
		<h1>Please log in</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>
		<g:hasErrors bean="${race}">
			<div class="errors">
				<g:renderErrors bean="${user}" as="list" />
			</div>
		</g:hasErrors>
		<g:form controller="user" method="post">
			<div class="dialog">
				<table>
					<tr class='prop'>
						<td valign='top' class='name'><label for='userName'>User
								Name:</label>
						</td>
						<td valign='top' class='value'>
							<input type="text" maxlength='32' name='userName' value='${user?.userName}'></input>							
						</td>
					<tr class ='prop'>
						<td valign="top" class="name"><label for='userPassword'>Password</label></td>		
						<td valigh="top" class="value">
							<input type ="password" maxlength="32" name = "userPassword" value = '${user?.userPassword}'></input>
						</td>
					</tr>				
				</table>
			</div>
			
			<div class="buttons">
				<span class="button">
					<g:actionSubmit value="Log in"></g:actionSubmit>
				</span>
			
			</div>
		</g:form>

	</div>
</body>
</html>